function loadConsumers() {
    return $.get('/data/consumers.json', function () {
    }, 'json');
}

function loadConsumerTopics(consumer) {
    return $.get('/data/' + consumer + '/topics.json', function () {
    }, 'json');
}

function loadConsumerTopicPartitions(consumer, topic) {
    return $.get('/data/' + consumer + '/' + topic + '/partitions.json', function () {
    }, 'json');
}

module.exports = {
    loadConsumers: loadConsumers,
    loadConsumerTopics: loadConsumerTopics,
    loadConsumerTopicPartitions: loadConsumerTopicPartitions
};